package main

import (
	"bufio"
	"io"
	"learngo/functional/fib"
)



func printFileContents(reader io.Reader) {
	scanner := bufio.NewScanner(reader)
	for scanner.Scan() {
		println(scanner.Text())
	}
}

func main() {

	f := fib.Fibonacci()

	printFileContents(f)

	//fmt.Println(f()) //1
	//fmt.Println(f()) //1
	//fmt.Println(f()) //2
	//fmt.Println(f()) //3
	//fmt.Println(f()) //5

}
